Skip to content

ci: establish a hermetic unit-test suite - #848

Open
linhongyu510 wants to merge 1 commit into
zilliztech:mainfrom
linhongyu510:ci/hermetic-unit-tests
Open

ci: establish a hermetic unit-test suite#848
linhongyu510 wants to merge 1 commit into
zilliztech:mainfrom
linhongyu510:ci/hermetic-unit-tests

Conversation

@linhongyu510

Copy link
Copy Markdown

Summary

This is a focused first phase of #819:

  • establish an allowlisted tests/unit suite that does not require provider SDK extras, credentials, databases, downloads, or network sockets
  • split the dataset tests so download and large-dataset iteration cases live under tests/e2e
  • add unit-test and e2e-test Make targets while keeping unittest as a compatibility alias
  • run the hermetic unit suite in pull-request CI
  • document the temporary boundary between classified unit/E2E tests and remaining legacy provider tests

Scope

This PR intentionally does not claim to complete the provider-by-provider reorganization proposed in #819. Tests still directly under tests/ remain legacy and unclassified; they can be split in follow-up changes.

Validation

Validated in a clean Python 3.11 environment with only .[test] installed:

  • make unit-test: 213 passed with sockets disabled
  • make lint: Black and Ruff passed
  • git diff --check: passed

Progresses #819.

@sre-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: linhongyu510
To complete the pull request process, please assign xuanyang-cn after the PR has been reviewed.
You can assign the PR to them by writing /assign @xuanyang-cn in a comment when ready.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@linhongyu510

Copy link
Copy Markdown
Author

/assign @XuanYang-cn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants